package com.waves.design.chain;

public class President extends Approver{
    public President(String name) {
        super(name);
    }

    public void processRequest(PurchaseRequest request) {
        if (request.getAmount() < 500000){
            System.out.println();
        } else {
            this.successor.processRequest(request);
        }
    }
}
